package com.zuoye.dey02;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("dey11\\src\\com\\hongyue\\chushibiao\\Demo.java");
        FileOutputStream fos = new FileOutputStream("dey11\\src\\com\\zuoye\\dey02\\aaa.txt");
        byte[] chars = new byte[1024];
        for (int i; (i = fis.read(chars)) != -1; ) {
            fos.write(chars,0,i);
        }
        fos.close();
        fis.close();
    }
}
